import request from '@/utils/request'

// 查询所有
export function selectAllGongqu() {
  return request({
    url: `/new/selectAllGongqu`,
    method: 'get'
  })
}

// 添加
export function addNewGongqu(data) {
  return request({
    url: `/new/addGongqu`,
    method: 'post',
    data: data
  })
}

// 更新
export function updateNewGongqu(gongquID, data) {
  return request({
    url: `/new/updateGongqu/${gongquID}`,
    method: 'put',
    data: data
  })
}

// 删除
export function deleteNewGongqu(gongquID) {
  return request({
    url: `/new/deleteGongqu/${gongquID}`,
    method: 'delete'
  })
}

// 下载
export function downloadNewGongqu() {
  return request({
    url: `/new/downloadGongqu`,
    method: 'GET',
    responseType: 'blob'
  })
}